package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.beans.factory.annotation.Value;

import java.util.Date;

/**
 * 申请提现对象 sys_withdrawal
 * 
 * @author jjp
 * @date 2020-04-17
 */

@ApiModel("工人提现实体类")
public class SysWithdrawal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */

    private Long withdrawalId;

    /** $column.columnComment */
    @ApiModelProperty("用户id")
    private Long userId;

    /** 银行卡id */
    @ApiModelProperty("银行卡id")
    private Long bankId;

    /** 实际到账金额 */
    @ApiModelProperty("实际到账金额")
    private double factMoney;

    /** 申请提现金额 */
    @ApiModelProperty("申请提现金额")
    private double money;

    /** 提现审核状态 0-待审核 1-审核成功 2-审核失败 */
    @ApiModelProperty("提现审核状态 0-待审核 1-审核成功 2-审核失败")
    private String withdrawalStatus;

    /** 审核失败原因 */
    @ApiModelProperty("审核失败原因")
    private String reason;

    /** $column.columnComment */
    private Date createTime2;

    /** 用户账号 */
    @ApiModelProperty("用户姓名")
    private String userName;

    @Value("${exchange}")
    private int exchange;

    public double getFactMoney() {
        return factMoney;
    }

    public void setFactMoney(double factMoney) {
        this.factMoney = factMoney;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getExchange() {
        return exchange;
    }

    public void setExchange(int exchange) {
        this.exchange = exchange;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setWithdrawalId(Long withdrawalId)
    {
        this.withdrawalId = withdrawalId;
    }

    public Long getWithdrawalId() 
    {
        return withdrawalId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBankId(Long bankId) 
    {
        this.bankId = bankId;
    }

    public Long getBankId() 
    {
        return bankId;
    }

    public void setWithdrawalStatus(String withdrawalStatus) 
    {
        this.withdrawalStatus = withdrawalStatus;
    }

    public String getWithdrawalStatus() 
    {
        return withdrawalStatus;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setCreateTime2(Date createTime2) 
    {
        this.createTime2 = createTime2;
    }

    public Date getCreateTime2() 
    {
        return createTime2;
    }

    @Override
    public String toString() {
        return "SysWithdrawal{" +
                "withdrawalId=" + withdrawalId +
                ", userId=" + userId +
                ", bankId=" + bankId +
                ", factMoney=" + factMoney +
                ", money=" + money +
                ", withdrawalStatus='" + withdrawalStatus + '\'' +
                ", reason='" + reason + '\'' +
                ", createTime2=" + createTime2 +
                ", userName='" + userName + '\'' +
                ", exchange=" + exchange +
                '}';
    }
}
